
<%@ page language="java"
	import="java.util.*,java.sql.*,com.ambow.Entity.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
	<%@page import="com.ambow.service.impl.*"%>
<%@page import="com.ambow.service.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>修改学生个人信息</title>
<link href="<%=path%>/static/css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<h3 id="subTitle">修改学生个人信息</h3>
<ul id="button">
	<li><a href="javascript:history.back()">返回</a></li>
</ul>
<form action="<%=path %>/StudentServlet?id=<%=request.getParameter("id") %>&status=modify" method="post" name="form1" id="form1">
	<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table">
		<tr>
			<th colspan="4" class="p4"><span class="title2"><h6>修改学生个人信息:</h6></span></th>
		</tr>
		<%Integer id = Integer.valueOf(request.getParameter("id"));
			 StudentService service = new StudentServiceImpl();
			Student stu = service.queryById(Student.class, id);
			%>
		<tr>
			<td width="20%" align="right" class="title2">学号：</td>
			<td width="80%" class="within2bg"><input name="number" type="text" class="input2"       value="<%=stu.getNumber()%>"/></td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">姓名：</td>
			<td width="80%" class="within2bg"><input name="name" type="text" class="input2" value="<%=stu.getSname() %>"/></td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">性别：</td>
			<td width="80%" class="within2bg">
				<input name="sex" type="radio" value="男" class="input2" checked="true"/>男
				<input name="sex" type="radio" value="女" class="input2" />女</td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">出生日期：</td>
			<td width="80%" class="within2bg">
				<input name="birthDate" type="text" class="input2" value="<%=stu.getBirthdate() %>"/>
				格式：年(4位)月(2位)日(2位) 例：19850101(1985年1月1日)</td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">籍贯：</td>
			<td width="80%" class="within2bg"><input name="nativePlace" type="text" class="input2" 	 size="40" value="<%=stu.getNativeplace()%>"/></td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">家庭住址：</td>
			<td width="80%" class="within2bg"><input name="address" type="text" class="input2"               size="40" value="<%=stu.getAddress() %>"/></td>
		</tr>
		<tr>
			<td width="20%" align="right" class="title2">联系电话：</td>
			<td width="80%" class="within2bg"><input name="tel" type="text" class="input2" value="<%=stu.getTel()%>"/></td>
		<tr>
			<td align="right" class="title2">所属班级：</td>
			
			<td colspan="3" class="within2bg">
				<select name="className">
				<%BJiService cService = new BJiServiceImpl();
					  List<Bclass> cList = (List)cService.queryAll("from Bclass");
					  for(int i=0;i<cList.size();i++){%>
						  <option><%=cList.get(i).getName() %></option>
					 <% }
					%>
		<!--  	<td colspan="3" class="within2bg"><select name="select">
				<option >请选择班级</option>
				<option selected="selected">通信041</option>
				<option>通信042</option>
				<option>电信041</option>
				<option>电信042</option>
				<option>电信043</option>
			</select>-->
		</tr>
			<tr>
				<td align="right" class="title2">年级：</td>
				<td colspan="3" class="within2bg"><select name="gradeName">
						<option selected="gradeName">请选择年级</option>
						<option>2004</option>
						<option>2005</option>
						<option>2006</option>
						<option>2007</option>
						<option>2008</option>
						<option>2009</option>
						<option>2010</option>
						<option>2011</option>
						<option>2012</option>
						<option>2013</option>
						<option>2014</option>
						<option>2015</option>
						<option>2016</option>
						<option>2017</option>
						<option>2018</option>
						<option>2019</option>
						<option>2020</option>
				</select></td>
			</tr>
	<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="yesno">
		<tr>
			<td align="center"><input name="Submit2" type="submit" class="bevel" value="确定" />
				<input name="Submit3" type="reset" class="bevel" value="取消" /></td>
		</tr>
	</table>
</form>
</body>
</html>